package com.itheima.health.service;

import com.itheima.health.Exception.MyException;
import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.CheckItem;
import com.itheima.health.pojo.Permission;

import java.util.List;

/**
 * @Author ： ZAG WELL
 * @Date : 2020/12/6
 */
public interface PermissionService {
    List<Permission> findAll();

    void add(Permission permission);

    PageResult<Permission> findPage(QueryPageBean queryPageBean);

    void update(Permission checkItem);

    void deleteById(int id) throws MyException;

    /**
     * 通过id查询权限信息
     * @param id
     * @return
     */
    Permission findById(int id);
}
